class FriendConditionsController < ApplicationController

  def initialize
    @styleName="my_infor"
  end

  # GET /friend_conditions/1
  # GET /friend_conditions/1.xml
  def show
    @friend_condition = FriendCondition.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @friend_condition }
    end
  end

  # GET /friend_conditions/1/edit
  def edit
    @member = current_accounts.member
    @friend_condition = current_accounts.friendCondition
  end

  # PUT /friend_conditions/1
  # PUT /friend_conditions/1.xml
  def update
    @friend_condition = FriendCondition.find(params[:id])

    respond_to do |format|
      if @friend_condition.update_attributes(params[:friend_condition])
        flash.now[:notice] = 'friend_condition was successfully updated.'
      else
        flash.now[:notice] = 'friend_condition was failed updated.'
      end
      format.html { render :action => "edit" }
    end
  end

end
